
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/chiptrend/chiptrendlist" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="chiptrendlist" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/tv/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>
<div >
    <a  class="btn btn-green"  data-toggle="dialog"
        data-url="${request.getContextPath()}/chiptrend/updatechiptrend"
        data-title="新增">新增</a>
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="80">时间</th>
            <th width="80">碎片率</th>
            <th width="80">目标碎片率</th>
            <th width="110">最后操作人</th>
            <th width="110">最后操作时间</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        <g:each in="${chiptrendlist}" status="i" var="wipTrendInstance">
            <tr>
                <td>${wipTrendInstance.TIME}</td>
                <td>${wipTrendInstance.CHIP_YIELD}</td>
                <td>${wipTrendInstance.TARGET_CHIP_YIELD}</td>
                <td>${wipTrendInstance.LM_USER}</td>
                <td>${wipTrendInstance.LAST_UPDATED}</td>
                <td>
                    <a  class="btn btn-green"  data-toggle="dialog"
                        data-url="${request.getContextPath()}/chiptrend/updatechiptrend?id=${wipTrendInstance.ID}"
                        data-title="编辑">编辑</a>
                    <a  class="btn btn-red"   data-confirm-msg="确定要删除该行信息吗？"
                        data-toggle="doajax"  data-type="DELETE"
                        data-callback=function(){$.CurrentNavtab.navtab('refresh')}
                        href="${request.getContextPath()}/chiptrend/deletechiptrend?id=${wipTrendInstance.ID}"
                    >删除</a>
                </td>
            </tr>
        </g:each>
        </tbody>
    </table>

</div>
&nbsp;


<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format:'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView:1,
            minView:1,
            pickerPosition: "bottom-left",
            language:'zh-CN',
            startDate:'2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>